<template>
  <el-container style="height: 750px; border: 1px solid #eee">
    <el-aside width="200px" style="background-color: rgb(179 201 239)">
      <h4 style="text-align: center;">物流管理系统</h4>
      <el-menu style="background-color: rgb(179 201 239)" :default-openeds="['1', '3']">
        <v-list-item @click="changeRoute('/about')">
          <el-menu-item index="1">
            <template slot="title"><i class="el-icon-picture-outline"></i>图片管理</template>
          </el-menu-item>
        </v-list-item>
        <v-list-item @click="changeRoute('/user')">
          <el-menu-item style="background-color: rgb(179 201 239)" index="2">
            <template slot="title"><i class="el-icon-user"></i>用户管理</template>
          </el-menu-item>
        </v-list-item>
        <v-list-item @click="changeRoute('/way')">
          <el-menu-item style="background-color: rgb(179 201 239)" index="3">
            <template slot="title"><i class="el-icon-truck"></i>物流管理</template>
          </el-menu-item>
        </v-list-item>
      </el-menu>
    </el-aside>

    <el-container>
      <el-main>
        <!-- 在导航里面放置component的位置 -->
        <router-view></router-view>
      </el-main>
    </el-container>
  </el-container>
</template>


<script>
export default {
  data() {
    return {
    }
  },
  methods: {
    changeRoute(route) {
      this.$router.push(route);
    }
  }
};
</script>

<style>
.el-header {
  background-color: rgb(179 201 239);
  color: black;
  line-height: 60px;
}

.el-aside {
  color: black;
}
</style>